package top.shiyiri.exercise;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author Aunean
 * @date 2022/1/5
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Employee implements Comparable<Employee>{
    private String name;
    private int age;
    private MyDate birthday;

    @Override
    public int compareTo(Employee o) {
        return name.compareTo(o.name);
    }
}
